package com.itheima.coll;

import java.util.ArrayList;
import java.util.Collection;

public class Demo04 {

    public static void main(String[] args) {


        //创建对象
        Collection<String> list= new ArrayList<>();
        list.add("吴亦凡1");
        list.add("吴亦凡2");
        list.add("吴亦凡3");
        list.add("吴亦凡4");
        for (String s : list) {
            s="鹿晗";
            System.out.println(s);
        }
        System.out.println(list);
    }
}
